package com.hsq.db137.demos.seriver;

import com.hsq.db137.demos.config.R;
import com.hsq.db137.demos.entity.Menuinfo;
import com.hsq.db137.demos.entity.Userinfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Author: hsq加油
 * @CreateTime: 2024/12/24-11:48
 * @Description: TODO
 * @Version: 1.0
 */
public interface UserinfoService extends IService<Userinfo>{
    //登录
    public R select(String username, String password);

    //注册
    public String insertUsert(Userinfo userinfo);

    //查询用户id的最大值
    public int selectMax();

    //手机号是否重复
    public boolean selectPhone(String phone);

    //用户名是否重复
    public boolean selectName(String name);

    //查询全部
    List<Userinfo> selectAllUser(String username);

    //删除
    String deleteUser(int id);

    //修改
    String updateUser(Userinfo userinfo);

    //根据ID获取用户信息
    Userinfo selectByUserid(int uid);
}
